package com.oazon.sonos.util;

import com.moco.launcher.bean.MOCO_CONSTANTS;
import com.oazon.sonos.bean.GetMetadata;

public class SonosUtil {
	public static GetMetadata fillgetMetadata(String id,int index,int count,boolean recursive,String provider){
		GetMetadata getMetadata = new GetMetadata();
		
		if(index <0){
			index = MOCO_CONSTANTS.INDEX;
		}
		if(count<=0){
			count = MOCO_CONSTANTS.QUEUE_COUNT;
		}
		if(id == null){
			id = MOCO_CONSTANTS.ROOT_ID;
		}
		if(provider == null){
			provider = MOCO_CONSTANTS.RECOMMEND_ROOT;
		}
		getMetadata.setRecursive(recursive);
		getMetadata.setCount(count);
		getMetadata.setIndex(index);
		getMetadata.setId(id);
		getMetadata.setProvider(provider);
		
		return getMetadata;
	}
}
